package com.home.fansea.controller;

import com.home.fansea.annotation.ApiRateLimit;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

@RestController
public class GuavaController {

    @GetMapping("/test")
    @ApiRateLimit(qps = 2, timeout = 0, timeUnit = TimeUnit.MILLISECONDS)
    public String test() {
        return "hello world";
    }
}
